<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFindhousesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('findhouses', function (Blueprint $table) {
            $table->increments('id');
            $table->string('area')->comment('意向区域');
            $table->string('apartment')->comment('意向户型');
            $table->unsignedInteger('price')->comment('预算');
            $table->string('tel')->comment('电话');
            $table->string('status')->default('F')->comment('状态：T 已处理 F 待处理 D 处理中');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('findhouses');
    }
}
